Archive (Print) Audit Record

Command:

To archive records from the HSM Audit Trail buffer onto a printer.

Notes:

This command cannot be added to the list of commands to be audited. Starting at the oldest audit record in the HSM it allows between one and 2000 audit records to be archived by outputting the record in a fixed format to the auxiliary or printer port. When an audit record has been archived, it has its ‘archived’ flag set to 1.

 

Field

Length & Type

Details

COMMAND MESSAGE

Message Header

m A

Will be returned to the Host unchanged

Command Code

2 A

Value “Q4”

Audit Mode Flag

1 N

Audit Mode, where:
0 = Archive the next 'un-archived' record
1 = Archive all 'un-archived' records
2 = Archive all records

End Message Delimiter

1 C

Optional. Must be present if a message trailer is present. Value X'19

Message trailer

n A

Optional. Maximum length 32 characters.

RESPONSE MESSAGE

Message Header

m A

Will be returned to the Host unchanged

Response Code

2 A

Value “Q5”

Error Code

2 N

00 – No error
13 – LMK error - report to Supervisor
15 – Error in input data
16 – Printer not ready
35 – No Audit Records found
36 – All Audit Records already archived
37 – Invalid audit mode

End Message Delimiter

1 C

Will only be present if present in the command message. Value X'19

Message Trailer

n A

Will only be present if in the command message. Maximum length 32 characters